/******************************************************************************
  Grog Engine sample app - v0.1 - (c)2007 Naicigam
  ------------------------------------------------
  Filename: Timer.inl
  Creation date: 06/08/2007
  Author: Juan Manuel Alvarez
 ******************************************************************************/

//------------------------------------------------------------------------------
bool Input::GetKeyDown(unsigned int uiKeyID)
{
	return ((KeyBuffer[uiKeyID] & 0x80) != 0);
}
//------------------------------------------------------------------------------
bool Input::GetKeyEventDown(unsigned int uiKeyID)
{
	return (KeyEvent[uiKeyID] == KS_DOWN);
}
//------------------------------------------------------------------------------
bool Input::GetKeyEventUp(unsigned int uiKeyID)
{
	return (KeyEvent[uiKeyID] == KS_UP);
}
//------------------------------------------------------------------------------
bool Input::GetMouseBut(unsigned int uiButID)
{
	return ((MouseBut[uiButID] & 0x80) != 0);
}
//------------------------------------------------------------------------------
bool Input::GetMouseClick(unsigned int uiButID)
{
	return (MouseButClick[uiButID]);
}
//------------------------------------------------------------------------------
long Input::GetMouseScrAbsPos(unsigned int uiButID)
{
	return (MouseScreenAbsPos[uiButID]);
}
//------------------------------------------------------------------------------
long Input::GetMouseRelPos(unsigned int uiButID)
{
	return (MouseRelPos[uiButID]);
}
//------------------------------------------------------------------------------